package com.scorpio.scbasics.rediostation.dto;

import com.baomidou.mybatisplus.annotation.TableName;
import com.scorpio.common.annotation.Excel;
import com.scorpio.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 【请填写功能名称】对象 biz_sys_msg_detail
 *
 * @author scorpio
 * @date 2020-10-14
 */
@Data
@TableName("biz_sys_msg_detail")
public class BizSysMsgDetailDTO extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    private Long id;

    /**
     * $column.columnComment
     */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long user_id;

    /**
     * 好友ID，0表示系统消息
     */
    @Excel(name = "好友ID，0表示系统消息")
    private Long to_user_id;

    /**
     * $column.columnComment
     */
    @Excel(name = "好友ID，0表示系统消息")
    private Long sm_id;

    /**
     * $column.columnComment
     */
    @Excel(name = "好友ID，0表示系统消息")
    private String msg;

    /**
     * $column.columnComment
     */
    @Excel(name = "好友ID，0表示系统消息")
    private Long operate_type;

    /**
     * $column.columnComment
     */
    @Excel(name = "好友ID，0表示系统消息")
    private Long operate_id;

    /**
     * 0、未读  1、已读
     */
    @Excel(name = "0、未读  1、已读")
    private Long is_read;

    /**
     * 1、电台消息
     * 2、聚缘公园
     * 3、查看申请
     * 4、点赞
     * 5、评论
     * 6、报名
     * 7、钱包提醒
     * 8、评价通知
     */
    private Date create_time;

    /**
     * $column.columnComment
     */
    @Excel(name = "0、未读  1、已读")
    private String obvious;


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("user_id", getUser_id())
                .append("to_user_id", getTo_user_id())
                .append("sm_id", getSm_id())
                .append("msg", getMsg())
                .append("operate_type", getOperate_type())
                .append("operate_id", getOperate_id())
                .append("is_read", getIs_read())
                .append("create_time", getCreate_time())
                .append("obvious", getObvious())
                .toString();
    }
}
